/**
 * 描述: 通用三方接口路由模块
 */

const express = require('express');
const router = express.Router();
const {decode} = require('../../utils/user-jwt');

// 插件路由
router.use('/login', require('./login'));
router.use('/ext', require('./ext'));
// 演示直接创建接口服务
router.get('/user_info', (req, res) => {
    res.json({
        success: true,
        data: req.auth
    })
})

module.exports = router;
